from pyswip import Prolog

prolog = Prolog()
prolog.consult('new_music.pl')

def extractNotes(x):
	out=""
	for n in x:
		out+="%s%s%s:" % (n[0][0],n[0][1],n[1])
	return out

for result in prolog.query("raiseNumHalfSteps(A,B,-61)"):
	print extractNotes(result.values())